#include "cppunit/TestFixture.h"
#include "cppunit/extensions/HelperMacros.h"
#include "CTArray.h"

class CTArrayTest : public CPPUNIT_NS::TestFixture
{
	CPPUNIT_TEST_SUITE(CTArrayTest);
	CPPUNIT_TEST(testCheckIndex);
	CPPUNIT_TEST(testAddOneItem);
	CPPUNIT_TEST(testDelOneItem);
	CPPUNIT_TEST(testShiftDelOneItem);
	CPPUNIT_TEST(testOperatorAssign);
	CPPUNIT_TEST(testOperatorAddAssign);
	CPPUNIT_TEST(testOperatorMinusAssign);
	CPPUNIT_TEST_SUITE_END();
public:
	void setUp();
	void tearDown();
protected:
	void testCheckIndex();
	void testAddOneItem();
	void testDelOneItem();
	void testShiftDelOneItem();
	void testOperatorAssign();
	void testOperatorAddAssign();
	void testOperatorMinusAssign();
};

